package com.foreknow.elmboot.mapper;

import com.foreknow.elmboot.po.Cart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CartMapper {

    public List<Cart> listCart(Cart cart);

    public int saveCart(String userId,Integer businessId,Integer foodId);

    public int updateCart(String userId,Integer businessId,Integer foodId,Integer quantity);

    public int removeCart(String userId,Integer businessId,Integer foodId);
}
